package org.yzz.org.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department {
    private Long id;
    private String name;
    private String intro;
    @JsonFormat(pattern = "yyyy-MM-dd hh-mm-ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd hh-mm-ss")
    private Date updateTime;
    private Employee manager;
    private Department parent;
    private String path;
    private String state;
    private List<Department> children;
}
